/*
 *	DjoltContext.h
 *
 *	David Janes
 *	Discover Anywhere Mobile
 *	March 2010
 *
 *	Copyright 2010 Discover Anywhere Mobile
 *
 *	Purpose:
 *	This maintains nesting structure as the template is processed.
 *
 *	Programmers:
 *	Here's where you want to look if you worried about the types
 *	of values being pulled for dotpaths
 */

#import <Foundation/Foundation.h>

/*
 */
@interface DjoltContext : NSObject
{
	NSMutableArray*	stack;
}

@property(nonatomic,retain) NSMutableArray*	stack;

- (id) init;
- (id) initWithDictionary:(NSDictionary*)_parent;

- (void) push;
- (void) pop;
- (void) setObject:(id)_object forKey:(id)_key;

- (id) get:(NSString*)_path;
- (BOOL) getBool:(NSString*)_path otherwise:(BOOL)_otherwise;
- (NSString*) getString:(NSString*)_path otherwise:(NSString*)_otherwise;
- (NSArray*) getArray:(NSString*)_path otherwise:(NSArray*)_otherwise;
@end

